package r5.powtorka3;

public class Bin implements Runnable {

	@Override
	public void run() {

		Employee oryginal = new Employee("Jan Kowalski", 2000, 2009, 10, 15);
		System.out.println(oryginal);

		Employee klon = null;
		try {
			klon = (Employee) oryginal.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}

		klon.increaseSalary(100);
		System.out.println(klon);

		Manager morg = new Manager("Bosman Jan", 5000, 2000, 5, 10);
		morg.setBonus(2000);
		System.out.println(morg);
		Manager mklon = null;
		try {
			mklon = (Manager) morg.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		mklon.increaseSalary(50);
		System.out.println(mklon);
		mklon.setBonus(3000);
		System.out.println(mklon);
		
		
		System.out.println(PoryRoku.WIOSNA);
	}

}
